<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<%
String cpath = request.getContextPath();
%>
	<head>
		<title></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	</head>

<script language="javascript">
<!-- 
  //当前窗口数
  var windCt=0;
 //添加一个窗口	
  function newWindow(url,id,lastid){
    if(windCt==0){
      document.getElementById("bk").style.display="none";
    }
	//上一个id的窗口存在
	if(document.getElementById(lastid) !=null){
		//上一个id与当前id不相同，不显示上一个窗口，改变上一个窗口的标签背景颜色
		if(lastid != id){
			document.getElementById(lastid).style.display="none";
			parent.document.frames["title"].changeLastPicture(lastid);
		}
	}
    document.getElementById("aa").style.display=""
	//新建一个iframe里面显示打开的窗口
	var iframe = document.createElement("iframe");
	iframe.width ="100%";
	iframe.height ="100%";
	iframe.frameBorder = 0; 
	iframe.id = id;
	iframe.src = url;
	iframe.scrolling = "auto" 
	iframe.style.display = "";	
	document.getElementById("aa").appendChild(iframe);
	//alert(document.getElementById("aa").innerHTML);
	//$("div").hide();
	//$("div").show(sp);
	windCt++;
  }
     

//显示窗口
  function showWindow(id,lastid){
 // alert("显示"+"lastid:"+lastid+","+"id:"+id);
	if( document.getElementById(lastid) !=null){
		//不显示上一窗口，改变上一窗口的标签颜色
		if(lastid != id){
			document.getElementById(lastid).style.display="none";
			parent.document.frames["title"].changeLastPicture(lastid);
		}
	}
	//显示当前窗口和标签颜色
	document.getElementById(id).style.display="";
	parent.document.frames["title"].changeNowPicture(id);
	//alert(document.getElementById("aa").innerHTML);
	//$("div").hide();
	//$("div").show(sp);	
  }


//删除窗口
  function delWindow(id,lastid){
  try{
    if(	windCt==0){
      document.getElementById("bb").display="";
    }
    windCt--;	
	document.getElementById(id).src="about:blank";
	var mydiv =document.getElementById("aa");
	if( document.getElementById(lastid) !=null){
		if(lastid == id){
			mydiv.removeChild(document.getElementById(id));
			var myid = mydiv.lastChild.getAttribute('id');
			document.getElementById(myid).style.display="";
			parent.document.frames["title"].changeNowPicture(myid);
			return myid;
		}
	}
	mydiv.removeChild(document.getElementById(id));
	document.getElementById(lastid).style.display="";
	return lastid;
	//alert(document.getElementById("aa").innerHTML);
	}
	catch(ex){
		//alert("del:"+ex.name+":"+ex.message);
	}
  }
-->
</script>

	<body id="tt" >	
		<div id="aa" style="position:absolute;width:100%;height:100%;">
			<!-- iframe id="bk" frameBorder="0" src="<%=cpath%>/function/showDesk.action" width=100% height=100%/-->
<!-- 			<iframe id="bk" frameBorder="0" src="<%=cpath%>/pages/LeftMenu/desk/deskdrag.jsp" width=100% height=100%/> -->
		<iframe id="bk" frameBorder="0" src="" width=100% height=100%/>
		</div>
	</body>

	
</html>

